package com.mxpio.erp.common.technology.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.mxpio.erp.common.jpa.policy.ResCodeGeneratorPolicy;
import com.mxpioframework.jpa.BaseEntity;
import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.annotation.Dict;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_TECHNOLOGY_WORKSHOP")
@ApiModel(value="车间")
public class WorkShop extends BaseEntity {

	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name = "WORK_SHOP_CODE_", updatable = false)
	@ApiModelProperty(value = "车间编号")
	@Generator(policy = ResCodeGeneratorPolicy.class)
	private String workShopCode;

	@Column(name = "PROCEDURE_NAME_")
	@ApiModelProperty(value = "车间名称")
	private String workShopName;
	
	@Column(name = "PROCEDURE_SHORT_NAME_")
	@ApiModelProperty(value = "车间简称")
	private String workShopShortName;
	
	@Column(name = "WORK_SHOP_TYPE_")
	@ApiModelProperty(value = "车间类型")
	@Dict(dicCode = "WORKSHOPTYPE")
	private String workShopType;
	
	@Column(name = "STATUS_")
	@ApiModelProperty(value = "是否启用")
	@Dict(dicCode = "ERP_COMMON_YESNO")
	private String status;
	
	@Column(name = "MEMO_")
	@ApiModelProperty(value = "备注")
	private String memo;
	
}






